import request from '@/utils/request'

// 获取首页统计信息
export function getIndex() {
  return request({
    url: '/api/index/',
    method: 'get'
  })
}

export function getBarChart(query) {
  return request({
    url: '/api/index/barchart/',
    method: 'get',
    params: query
  })
}
